import {createContext, useState} from 'react'


export let Context2 = createContext()
let {Provider, Consumer} = Context2

export function ContextProvider2({children}) {
  let [user, setUser] = useState({name: 'cai', age: 12})

  return (
    <Provider value={user}>
      {children}
    </Provider>
  )
}